﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Data;
using System.Drawing;
using System.Linq;
using System.Text;
using System.Windows.Forms;
using HotelManagement.Customer;
using HotelManagement.Room;

namespace HotelManagement.Rent
{
    public partial class ShowThings : Form
    {
        public ShowThings()
        {
            InitializeComponent();
        }
        public ShowThings(int pI)
        {
            InitializeComponent();
            Point pt = new Point(0, 0);
            switch (pI)
            {
                case 1:
                    CustomerManagement frm = new CustomerManagement();
                    this.Controls.Add(frm);
                    frm.Enabled = true;
                    break;
                case 2:
                    RoomManagement frmR = new RoomManagement();
                    this.Controls.Add(frmR);
                    frmR.Enabled = true;
                    break;
                default: CustomerManagement frmC = new CustomerManagement();
                    this.Controls.Add(frmC);
                    frmC.Enabled = true;
                    break;
            }
        }

    }
}
